package com.train.trainmanage.mapper;

import java.util.List;


import org.apache.ibatis.annotations.Mapper;

import com.train.trainmanage.model.ComeGoDirectionModel;

@Mapper
public interface ComeGoDirectionModelMapper {
    int deleteByPrimaryKey(Integer direcId);

    int insert(ComeGoDirectionModel record);

    int insertSelective(ComeGoDirectionModel record);

    ComeGoDirectionModel selectByPrimaryKey(Integer direcId);

    int updateByPrimaryKeySelective(ComeGoDirectionModel record);

    int updateByPrimaryKey(ComeGoDirectionModel record);
    
    List<ComeGoDirectionModel> listByType(Integer type);
    
    List<ComeGoDirectionModel> listByIds(List<Integer> ids);
    
    ComeGoDirectionModel getComeDirecByTrainname(String tarinName);
    
    ComeGoDirectionModel getGoDirecByTrainname(String tarinName);
    
}